﻿$(document).ready(function () {
    $("input[type=button], input[type=submit]").mouseover(function () {
        $(this).css("background-position", "bottom");
    });
    $("input[type=button], input[type=submit]").mouseout(function () {
        $(this).css("background-position", "top");
    });

    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function EndRequestHandler(sender, args) {
        $("input[type=button], input[type=submit]").mouseover(function () {
            $(this).css("background-position", "bottom");
        });
        $("input[type=button], input[type=submit]").mouseout(function () {
            $(this).css("background-position", "top");
        });
    }
});